package com.mw.wmimobile.connection;

import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpParams;

public class Connector {
	
	
	//METHOD TYPES
	//http://wmimobile.herokuapp.com/empl_list/
	public static final String PRACOWNICY = "empl_list/";
	//http://wmimobile.herokuapp.com/schedule/
	public static final String ZAJECIA = "schedule/";
	//
	public static final String AKTUALNOSCI = "news/";
	
	static final int timeout = 30000;
	static final HttpParams httpParameters = new BasicHttpParams();
	static final DefaultHttpClient httpclient = new DefaultHttpClient(httpParameters);
	
	private static Connector connector;
	
	public static Connector getInstance() {
		if (connector == null) {
			connector = new Connector();
			
		}
		return connector;
	}

}
